import {messages} from "share/common";
/**
 * Created by zhouli on 19/1/18
 * Email li.zhou@huilianyi.com
 */
//todo
//待后端做成值列表
import iconAdmin from 'images/permission-setting/icon_admin.png';
import iconFinance from 'images/permission-setting/icon_finance.png';
import iconOther from 'images/permission-setting/icon_other.png';

const permissionTypeList = [
  {
    label: messages('permission-setting.key89')/*系统管理员*/,
    name: messages('permission-setting.key89')/*系统管理员*/,
    value: "ADMIN",
    iconType: iconAdmin
  },
  {
    label: messages('permission-setting.key90')/*功能管理员*/,
    name: messages('permission-setting.key90')/*功能管理员*/,
    value: "FINANCE",
    iconType: iconFinance
  },
  {
    label: messages('permission-setting.key79')/*其他*/,
    name: messages('permission-setting.key79')/*其他*/,
    value: "OTHER",
    iconType: iconOther
  },
];
//默认的角色（职能）模型
const roleModel = {
  "permissionName": "",//集团管理员
  "permissionCode": "",//tenant_admin
  // "permissionDesc": "",//desc
  "permissionType": "",    //-------与 ROLE_TENANT_ADMIN，ROLE_COMPANY_FINANCE_ADMIN 对应 , 先写死，之后提供值列表,这个先为空可以创建
  "permissionCategory": undefined,//财务
  "enabled": true
};
//授权策略模型
const authPolicyModel = {
  "authorizationType": undefined,//{messages('permission-setting.key9')/*适用人员*/}
  "authorizationCode": "",//{messages('permission-setting.key10')/*授权代码*/}
  // "authorizationName": "",//{messages('permission-setting.key11')/*授权名称*/}
  "authorizationDesc": "",//{messages('permission-setting.key12')/*授权描述*/}
  "enabled": true
};
export {
  roleModel,
  authPolicyModel,
  permissionTypeList,
}
